package com.mt.api.modules.mapstruct;

import com.mt.api.modules.domain.AppOrder;
import com.mt.api.modules.domain.AppOrderDetail;
import com.mt.api.modules.domain.vo.AppOrderDetailSimpleVo;
import com.mt.api.modules.domain.vo.AppOrderSimpleVo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

/**
 * @Author: plover
 * @Date: 2022/01/13 3:50 下午
 * @Description:
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE, uses = {TransMapStruct.class, AmountTransMapStruct.class})
public interface AppOrderMapStruct {

    AppOrderSimpleVo entityToSimpleVo(AppOrder appOrder);

    List<AppOrderDetailSimpleVo> entityToSimpleDetailVoList(List<AppOrderDetail> detailList);

    AppOrderDetailSimpleVo entityToSimpleDetailVo(AppOrderDetail detail);

}
